package com.grupoconstruobras.sigo.general.data;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Immutable;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Immutable
@Table(name = "sec_permiso", schema = "bienes")
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class Permisos implements Serializable {

  private static final long serialVersionUID = -6298828031702571317L;

  @Id
  @NotNull
  @NotEmpty
  private Integer idpermiso;

  @NotNull
  @NotEmpty
  private String principal;

  @NotNull
  @NotEmpty
  private String recurso;

  private String excepto;

  private String permiso;

  public Integer getIdpermiso() {
    return idpermiso;
  }

  public void setIdpermiso(Integer idpermiso) {
    this.idpermiso = idpermiso;
  }

  public String getPrincipal() {
    return principal;
  }

  public void setPrincipal(String principal) {
    this.principal = principal;
  }

  public String getRecurso() {
    return recurso;
  }

  public void setRecurso(String recurso) {
    this.recurso = recurso;
  }

  public String getExcepto() {
    return excepto;
  }

  public void setExcepto(String excepto) {
    this.excepto = excepto;
  }

  public String getPermiso() {
    return permiso;
  }

  public void setPermiso(String permiso) {
    this.permiso = permiso;
  }

}
